class AppRegex{
  AppRegex._();
///
  /// 是8-16位字母、数字组合
  ///
  static bool isPassword(String text) => RegExp(r'^(?=.*[a-zA-Z])(?=.*\d)[^]{8,16}$').hasMatch(text);


}
  extension AppRegexExtension on String{
    /// 密码正则校验
    bool get isNotPassword => !AppRegex.isPassword(this);
  }